import Router from 'koa-router'
import QianchuanController from '../controller/qianchuanController'


const router = new Router()

router.prefix('/dlyadminapi/qianchuan')

router

	/**
	 * @swagger
	 * /dlyadminapi/qianchuan/addcode:
	 *   get: 
	 *     description: 千川 
	 *     tags: [千川] 
	 *     summary: "添加兑换码"
	 *     parameters:
	 *       - name: authCode
	 *         in: query
	 *         description: 用户兑换码
	 *         required: true
	 *     produces: 
	 *       - application/json 
	 *     responses: 
	 *       200:
	 *         description: 获取数据列表 
	 * */
	.post('/addcode', QianchuanController.addcode)
	/**
	 * @swagger
	 * /dlyadminapi/qianchuan/getcodeList:
	 *   get: 
	 *     description: 千川 
	 *     tags: [千川] 
	 *     summary: "兑换码列表"
	 *     parameters:
	 *       - name: authCode
	 *         in: query
	 *         description: 兑换码列表
	 *         required: true
	 *     produces: 
	 *       - application/json 
	 *     responses: 
	 *       200:
	 *         description: 获取数据列表 
	 * */
	.get('/getcodeList', QianchuanController.getcodeList)


export default router
